package com.china.produce.thread;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2022/7/21
 */
public class LongTask implements Callable {
    @Override
    public String call() throws Exception {

        System.out.println("long task start ");

        TimeUnit.SECONDS.sleep(10);

        System.out.println("long task end ");

        return "longTask";
    }
}
